<?php

namespace app\common\model;

class User extends BaseModel
{
    protected $table = 'user';

    public function address ()
    {
        return $this->hasMany('\app\common\model\UserAddress','uid');
    }

    public function order()
    {
        return $this->hasMany('\app\common\model\Order','uid');
    }
}